{include file="inc/header.html"} 
<?php
$this->_var['storejs'][] = $this->_var['TMPL_REAL']."/js/store.js";
$this->_var['cpstorejs'][] = $this->_var['TMPL_REAL']."/js/store.js";
$this->_var['storecss'][] = $this->_var['TMPL_REAL']."/css/store.css";
?>
<script type="text/javascript" src="{function name="parse_script" v="$storejs" c="$cpstorejs"}"></script>
<link rel="stylesheet" type="text/css" href="{function name="parse_css" v="$storecss"}" />
<script type="text/javascript">
	var is_order_show = true;
	var order_id = "{$order.id}";
</script>
<div class="blank"></div>
<div class="res_proc_bg">
	<div class="res_proc_bd">
    	<div class="res_proc_on" style="width:100%;">
        	<div class="res_proc_r"></div>
        </div>
    </div>
</div>
<div class="f14 c4c">
	<span class="abs">进度：[第3/3步]</span>
    <ul class="clearfix tr">
    	<li class="float_three">1. {if $order['deal_type'] eq 1}KTV{else}餐厅{/if}首页</li>
        <li class="float_three">2. 填写订单</li>
        <li class="float_three cg b">3. 确认订单</li>
    </ul>
</div>
<div class="blank1"></div>
<div class="w640 mt30 rel zx1">
    	<b class="g_m1_c"></b><b class="g_wh_c"></b>
        <div class="blc brc">
        	<div class="gray_hl res_gray_hl">
                {if $order['status'] eq 0}
				<h3 class="f24 g6">恭喜您，您的订单已经成功提交！</h3>
                <div class="mt5 pb10 g6 f13">
                	预计<span class="icons i001"></span><strong class="cg lt1 mr5">15分钟</strong>内将预订结果通过手机短信发送给您，请稍候…
				</div>
				{elseif $order['status'] eq 1}
				<h3 class="f24 g6">您还可以发送请柬给朋友，如果订单确认成功，我们会自动帮您发送。</h3>
                <div class="mt5 pb10 g6 f13">
                	  订单状态：<strong class="cg lt1 mr5">等待就餐</strong>
                </div>
				{elseif $order['status'] eq 2}
				<h3 class="f24 g6">就餐到达。仍需订餐，不妨去看看<a href="{url x="store" r="index"}" class="cg">餐厅列表</a>吧。{if app_conf("SHOP_TEL") neq ''}如有疑问，{function name="app_conf" value="SHOP_TEL"}随便打。{/if}</h3>
                <div class="mt5 pb10 g6 f13">
                	  订单状态：<strong class="cg lt1 mr5">就餐到达</strong>
                </div>
				{elseif $order['status'] eq 3}
				<h3 class="f24 g6">订单已取消。仍需订餐，不妨去看看<a href="{url x="store" r="index"}" class="cg">餐厅列表</a>吧。{if app_conf("SHOP_TEL") neq ''}如有疑问，{function name="app_conf" value="SHOP_TEL"}随便打。{/if}</h3>
                <div class="mt5 pb10 g6 f13">
                	 订单状态：<strong class="cg lt1 mr5">退订成功</strong>
                </div>
				{elseif $order['status'] eq 4}
                <h3 class="f24 g6">您还可以发送请柬给朋友，如果订单确认成功，我们会自动帮您发送。</h3>
                <div class="mt5 pb10 g6 f13">
                	订单状态：<strong class="cg lt1 mr5">订单失败</strong>
                </div>
                {/if}
            </div>
        </div>
        <b class="g_wh_c"></b><b class="g_m1_c"></b>
    </div>
	
	<div class="w600 rel"><div class="res_gray_hl_sh"></div></div>
	{if  $order['status'] eq 0}
	<div class="w640 rel zx2"><img alt="订餐小秘书提醒，您已在{$order.location_name}订位成功" src="http://s1.xiaomishu.com/b/img/95_greb_ok.v164041.png" class="res_ord_img_ok"></div>
	{/if}
	{if  $order['status'] eq 0}
	<div class="w640 pt30 rel zx1">
		 您现在还可以：
        <div class="tc">
        	<input type="button" class="gre_big_btn fw" id="invWriteBtn" value="填写并发送请柬" id="invAlertBox" title="填写并发送请柬">                
        </div>
    </div>
	{/if}
	<div class="tc pt30 pb15 f13">
    	订单操作：
        <span class="gc">
        	<span class="icons i002"></span><a href="javascript:print();" class="g3 tdl ml2">打印</a>
            {if $order['status'] neq 0 && $order['status'] neq 2 && $order['status'] neq 4}
            <span class="ml10 mr10">|</span>
            <span class="icons i003"></span><a href="{url x="store" r="order#modify" p="id=$order.id"}" class="g3 tdl ml2">修改</a>
            {/if}
			{if $order['status'] lt 2}
            <span class="ml10 mr10">|</span>
            <span class="icons i004"></span><a id="bookOrderCancel" href="{url x="store" r="order#del" p="id=$order.id"}" class="g3 tdl ml2">撤销</a>
            {/if}
        </span>
    </div>
<div class="blank"></div>
<div class="store-wrap clearclearfix wb">
	<s class="page_cor"></s>
	<div class="p20 page_ui">
            	<h2 class="f20 fw">{$order.location_name}</h2>
                <div class="btd res_ord_fill_box">
                	<h5 class="g9">预订信息</h5>
                    <div class="pct66 pt10">
                    
                        <div class="clearfix pb15">
                            <strong class="float_two mr20 tr">{if $order['deal_type'] eq 1}K歌{else}就餐{/if}时间</strong>
                            <div class="cell lt1">
                                {function name="to_date" v="$order.order_time" f="Y年m月d日"}
                                <span class="ml20">{function name="to_date" v="$order.order_time" f="H"}点</span>
                                <span class="ml20">{function name="to_date" v="$order.order_time" f="i"}分</span>
                            </div>
                        </div>
                        <div class="clearfix pb15">
                            <strong class="float_two mr20 tr">人数</strong>
                            <div class="cell lt1">{$order.order_nums}人</div>
                        </div>
                        <div class="fix">
                            <strong class="float_two mr20 tr">座位要求</strong>
                            <div class="cell lt1">
                            	{if $order.deal_type eq 1}
									{if $order.seat_status eq 0}
									小包厢
									{elseif $order.seat_status eq 1}
									中包厢
									{elseif $order.seat_status eq 2}
									大包厢
									{elseif $order.seat_status eq 3}
									VIP包厢
									{/if}
								{else}
                            	{if $order.seat_status eq 0}只订大厅{else}包厢{if $order.seat_switch eq 0}(订不到包房就订大厅){/if}{/if}
                                <span class="ml20">
                                	接受最低消费
									{if $order.min_expense eq 500}
									500元以内
									{elseif $order.min_expense eq 1000}
									501元-1000元
									{elseif $order.min_expense eq 2000}
									1001元-2000元
									{elseif $order.min_expense eq 5000}
									2001元-5000元
									{else}
									无
									{/if}
								</span>
								{/if}
                            </div>
                        </div>
                    </div>
                </div>
                <!-- 联系人信息 -->
                <div class="btd res_ord_fill_box">
                	<h5 class="g9">联系人信息</h5>
                    <div class="pct66 pt10">
                        <div class="clearfix pb15">
                            <strong class="float_two mr20 tr">姓名、性别</strong>
                            <div class="cell lt1">{$order.order_name}<span class="ml20">{if $order.order_sex eq 1}先生{else}女士{/if}</span></div>
                        </div>
                        <div class="fix">
                            <strong class="float_two mr20 tr">手机号</strong>
                            <div class="cell lt1">{$order.order_tel}</div>
                        </div>
                    </div>
                </div>
                <!-- 给商户留言 -->
                <div class="btd res_ord_fill_box">
                	<h5 class="g9">给商户留言</h5>
                    <div class="pct66 pt10">
                        <div class="clearfix pb15">
                            <strong class="float_two mr20 tr">其他要求</strong>
                            <div class="cell lt1">{if $order.order_msg}{$order.order_msg}{else}您没有附加要求{/if}</div>
                        </div>
                    </div>
                </div>
                <!-- 注意事项 -->
                <div class="btd res_ord_fill_box">
                	<h5 class="g9">注意事项</h5>
                    <div class="pct66 auto pt10">
                    	<p>为了保证您的消费利益，请在{if $order.deal_type eq 1}K歌{else}就餐{/if}前出示相关折扣短信，并在{if $order.deal_type eq 1}K歌{else}就餐{/if}后保留{if $order.deal_type eq 1}K歌{else}就餐{/if}凭证。</p>
                    </div>
                </div>
            </div>
</div>
<div class="blank"></div>
{if $smarty.request.is_inv eq '1' && $order['status'] eq 0}
<script type="text/javascript">
	invAlertBox();
</script>
{/if}
{include file="inc/footer.html"} 